<template>
	<view class="cu-bar bg-black search page-nav" :style="'margin-top:'+StatusBar+'px'">
		<view class="cu-avatar round" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big91012.jpg);" v-if="isPic"></view>
		<view class="cuIcon-back" v-else style="margin-left: 20upx;" @tap="goback">
		</view>
		<view class="content">
			{{content}}
		</view>
		<view class="action">
			<text class="cuIcon-more"></text>
		</view>
	</view>
</template>

<script>
	export default {
		props:['isPic','content'],
		data() {
			return {
				
			};
		},
		created(){
			
		},
		methods:{
			goback(){
				uni.navigateTo({
					url:'/pages/index/index'
				})
			}
		}
	}
</script>

<style>
	.page-nav{
		width: 100%;
		position: fixed;
		top: 0;
		left: 0;
	}
</style>
